﻿@{
    Layout = "_layout.cshtml";
    Page.Title = "首页";
    Page.Description = V5.Config.View["SiteDescription"];
    Page.Keywords = V5.Config.View["SiteKeywords"];
}
<div id="content">
    <div class="layout grid-m0s5">
        <div class="col-main">
            <div class="main-wrap">
                <div id="slide" class="KS_Widget section loading" data-widget-type="Slide" data-widget-config="{'effect':'scrolly','easing':'easeOutStrong','countdown':true}">
                    <ol class="ks-switchable-content">
                        <li><a target="_blank" href="@(V5.Config.SiteUrl)zhuanti/1090.html" title="纪念张国荣逝世十周年">
                            <img alt="纪念张国荣逝世十周年" src="/@(V5.Config.TemplatePath)/Images/slide-81.jpg" data-pinit="registered" /></a></li>
                        <li><a target="_blank" href="@(V5.Config.SiteUrl)zhuanti/1088.html" title="第一夫人">
                            <img alt="第一夫人" src="/@(V5.Config.TemplatePath)/Images/slide-80.jpg" /></a></li>
                        <li><a target="_blank" href="@(V5.Config.SiteUrl)zhuanti/1087.html" title="世界水日">
                            <img alt="世界水日" src="/@(V5.Config.TemplatePath)/Images/slide-79.jpg" /></a></li>
                        <li><a target="_blank" href="@(V5.Config.SiteUrl)zhuanti/1086.html" title="厉以宁">
                            <img alt="厉以宁" src="/@(V5.Config.TemplatePath)/Images/slide-78.png" data-pinit="registered" /></a></li>
                        <li><a target="_blank" href="@(V5.Config.SiteUrl)zhuanti/1085.html" title="金庸90大寿">
                            <img alt="金庸90大寿" src="/@(V5.Config.TemplatePath)/Images/slide-77.jpg" /></a></li>
                    </ol>
                </div>
            </div>
        </div>
        <div class="col-sub">
            <div class="homepage_login">
                <a href="@V5.Url.Action("register", null)" class="loginup" hidefocus="true">免费注册</a><a
                            href="@V5.Url.Action("login", null)" class="login" hidefocus="true">登录</a></div>
            <div class="announce">
                <div class="hd">
                    <ul class="ks-switchable-nav clearfix">
                        <li class="tab-holder-notice ks-active" hidefocus="true"><a href="@V5.Url.Action("article/index", null)"
                                    target="_blank">淘书公告</a> </li>
                        <li class="tab-holder-cw" hidefocus="true"><a href="@V5.Url.Action("book/promotes", null)"
                                    target="_blank">优惠促销</a> </li>
                    </ul>
                </div>
                <div class="bd ks-switchable-content clearfix">
                    <div class="tab-panel" style="display: block;">
                        <ul class="clearfix">
                            @foreach (DataRow dr in V5.Article.Query_By("*", "", "Id Desc", 5).Rows) {
                                <li><a href="@V5.Html.Out(dr["Url"])" target="_blank"><span style="color: #cc3300;">@dr["Title"]</span></a></li>
                            }
                        </ul>
                    </div>
                    <div class="tab-panel">
                        <ul class="clearfix">
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="layout grid-s6m0">
        <div class="col-main">
            <div class="main-wrap">
                @RenderPage("inc/_index-book-new.cshtml")
                <div class="ad w710">
                    <p>
                        <a href="@(V5.Config.SiteUrl)zhuanti/1061.html" target="_blank">
                            <img alt="茅盾文学奖" src="/@(V5.Config.TemplatePath)/Images/ad-13.png" /></a></p>
                </div>
                @RenderPage("inc/_index-tejia-book.cshtml")
                @RenderPage("inc/_index-author-hot.cshtml")
                <div class="ad w710">
                    <p>
                        <a href="@(V5.Config.SiteUrl)zhuanti/1054.html" target="_blank">
                            <img alt="育儿-成长" src="/@(V5.Config.TemplatePath)/Images/ad-14.jpg" /></a></p>
                </div>
                @RenderPage("inc/_index-bookrank.cshtml")
            </div>
        </div>
        <div class="col-sub">
            <div class="tjtj-left">
                <div class="title bjtj">
                </div>
                <ul class="book-ul" id="j_books">
                    @{
                        var loopNum = 1;
                        foreach (DataRow dr in V5.Book.Query_By("*", "", "", 10).Rows) {
                            var ccHtml = "";
                            var firstHtml = "";
                            if (loopNum == 1) {
                                firstHtml = "selected";
                            }
                            if (loopNum < 5) {
                                ccHtml = "hot-3";
                            }
                        <li class="@ccHtml @firstHtml"><strong>@(loopNum)</strong><a id="hbooks_ctl00_cover" title="@dr["BookName"]"
                                class="tbook-img img60" href="@V5.Html.Out(dr["Url"])" target="_blank"><img
                                    title="@dr["BookName"]" src="@dr["weizhi"]" style="border-width: 0px;" width="60" height="60" /></a>
                            <div class="tbook-info">
                                <div class="tbook-name">
                                    <a id="hbooks_ctl00_bookname" title="@dr["BookName"]" href="@V5.Html.Out(dr["Url"])"
                                            target="_blank">@dr["BookName"]</a></div>
                                <p class="tbook-price">
                                    <span class="price_d">¥<em>@dr["SellPrice"]</em></span><span class="discount">26折</span></p>
                            </div>
                        </li>
                            loopNum++;
                        }
                    }
                </ul>
            </div>
            <div class="ad w230">
                <p>
                    <a href="@(V5.Config.SiteUrl)zhuanti/1067.html" target="_blank">
                        <img src="/@(V5.Config.TemplatePath)/Images/ad-15.png" alt="影视同期书" /></a></p>
            </div>
            <!--catalog -->
            @RenderPage("inc/_left-channel-nav.cshtml")
            <div class="tss-publisher">
                <div class="title mstm">
                </div>
                <ul>
                    @foreach (DataRow dr in V5.Book.Query_By_Publish("*", "", "", 6).Rows) {
                        <li><a href="@V5.Html.Out(V5.Url.Action("book/search", new { classid = 0, pageid = 0, search = "pub!" + dr["PubName"] }))"
                                target="_blank">@dr["PubName"]</a></li>
                    }
                </ul>
            </div>
        </div>
    </div>
</div>
@section meta{
    <link rel="stylesheet" type="text/css" href="/@(V5.Config.TemplatePath)/style/ts-index.css" />
}
@section header{
    @RenderPage("inc/_header-channel-nav.cshtml")
}
@section footer{
    @RenderPage("inc/_footer-friendlinks.cshtml")
}
@section bottom{
    <script type="text/javascript" src="/@(V5.Config.TemplatePath)/scripts/ts-index.js"></script>
}
